<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<!--view视图-->
<div id="app">

    性别
    <input type="radio" name="xiaoming" value="男" v-model="xiaoming">男
    <input type="radio" name="xiaoming" value="女" v-model="xiaoming">女
    <p>
        选中了谁:{{xiaoming}}
    </p>

    <!--下拉框-->
    下拉框
    <select v-model="selected">
        <option value="" disabled>--请选择--</option>
        <option>A</option>
        <option>B</option>
        <option>C</option>
    </select>

    value:<span>{{selected}}</span>

</div>


<!--1.导入vue.js-->
<script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
<script>
    var vm= new Vue({
        el: "#app",
        data: {
            selected: '',
            xiaoming: ''
        }
    });
</script>
</body>
</html>